package demo.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import demo.aspect.MongoTemplateTraceAspect;

/**
 * 切面配置
 * 
 * @author hanjy
 *
 */
// @Configuration
public class AspectConfig {

    private static Logger logger = LoggerFactory.getLogger(AspectConfig.class);

    @Bean
    protected MongoTemplateTraceAspect mongoTemplateTraceAspect() {
        logger.info("mongoTemplateFilterAspect");
        return new MongoTemplateTraceAspect();
    }

}